export default {
  methods: {
    resolveSrcPath(module, substr = 'src', replacement = '@') {
      console.log('original:', module)
      if (typeof module === 'string') {
        module = require(`${module}`)
      }
      if (module) {
        var filePath = module.default.__file
        return filePath.replace(substr, replacement)
      }
      return ''
    }
  }
}
